ngl: Improve packing
authorMatthias Clasen <mclasen@redhat.com>
Sun, 28 Mar 2021 20:41:25 +0000 (16:41 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 29 Mar 2021 19:17:10 +0000 (15:17 -0400)
Pack texture cache entries slightly better.

There was a 4 byte hole here.

gsk/ngl/gskngltexturepoolprivate.h

index 8b39ec5440915cc7b4fa5c7b479691829ea7f696..ac8e326eb5faa6df7ad0c689cdfe739ffc1fa1c5 100644 (file)
@@ -58,13 +58,13 @@ struct _GskNglTexture
   /* Backpointer to texture (can be cleared asynchronously) */
   GdkTexture *user;
 
+  /* Only used by nine-slice textures */
+  GskNglTextureNineSlice *nine_slice;
+
   /* Only used by sliced textures */
   GskNglTextureSlice *slices;
   guint n_slices;
 
-  /* Only used by nine-slice textures */
-  GskNglTextureNineSlice *nine_slice;
-
   /* The actual GL texture identifier in some shared context */
   guint texture_id;